def out =   { resp.getWriter().write(it)}
out 'source:'
def open =  { out("<"+it + ">")}
def close = { out("</"+it + ">")}
def tag =  { out("<"+it + "/>")}

open 'form action="saveResource.groovy" method="post"'
out 'path:'
tag 'input type="text" name="path"'

tag 'input type="submit" value="Guardar"'
tag 'br'
open 'textarea rows="10" cols="50" name="source"'
close 'textarea'
close 'form'